package last.multicode.studentscore;

public class Score {
    float dailyScore;// 平时成绩
    float finalScore;// 期末成绩

    public Score(float dailyScore, float finalScore) {
        this.dailyScore = dailyScore;
        this.finalScore = finalScore;
    }

    public float totalScore() {
        return (dailyScore * 30 + finalScore * 70) / 100;
    }
}